// ----------------------------------
// RSDK Project: Sonic 2
// Script Description: Sega Pal Cycle Object
// Script Author: Christian Whitehead/Simon Thomley
// Unpacked by Rubberduckycooly's script unpacker
// ----------------------------------

// ========================
// Aliases
// ========================

private alias object.value1 : object.palCycleTimer
private alias object.value2 : object.palCycleTablePos
private alias object.value3 : object.paletteTimer
private alias object.value4 : object.palCycle1Timer

// ========================
// Tables
// ========================

private table Sega_palCycleTable
	0xE080E0, 0xB44890, 0x90246C, 0x6C0048
	
end table


// ========================
// Function Definitions
// =======================
// ========================
// Events
// ========================

event ObjectUpdate
	object.palCycleTimer++
	if object.palCycleTimer == 4
		object.palCycleTimer = 0
                RotatePalette(0, 112, 119, true)
	end if
// ========================
// Editor Events
// ========================
